package com.love.driver.api;


import com.love.common.core.constant.SecurityConstants;
import com.love.common.core.constant.ServiceNameConstants;
import com.love.common.core.domain.R;
import com.love.driver.api.factory.RemoteDriverFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteDriverService", value = ServiceNameConstants.DRIVER_SERVICE, fallbackFactory = RemoteDriverFallbackFactory.class)
public interface RemoteDriverService {

    /**
     * 测试代驾模块openFeign
     * @param source
     * @return
     */
    @PostMapping("/info/testDriverFeign")
    public R<Boolean> testDriverFeign(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
